package day0113;
public class Test1 {
    //main方法：程序入口,让代码能运行。
    public static void main(String[] args) {
        System.out.println(1+2);
        System.out.println(1*2);
        System.out.println(1/2); //0
        System.out.println("hello");

        int m=1; //定义一个变量m表示现在的月份 1
        byte b1=-128;
        byte b2=127;
        System.out.println(b1  +","+ b2);

        short s1=32767;
        short s2=-32768;
        System.out.println(s1 + "," + s2);


        int i1=2147483647;
        int i2=-2147483648;

        long l1=-9223372036854775808L;
        long l2= 9223372036854775807L;
        System.out.println(i1+","+i2+","+l1 + "," + l2);




        float f1=3.14F;

        double d1=3.14;

        char ch1='a';
        char ch2='啊';
        char ch3=97;
        char ch4='\'';
        char ch5='\t';
        System.out.println(ch1+","+ch2+","+ch3+","+ch4+","+ch5);

        if( ch2 == 99){
            System.out.println("ch2里边存储的是 c");
        }

        if( i1 > 0){
            System.out.println("i1 是一个正整数");
        }

        if( f1 > 0){
            System.out.println("f1 是一个大于0的小数");
        }


    }
}
